<%@ page language="java" pageEncoding="UTF-8"
	errorPage="/ui/defaultException.jsp"%>
<%@include file="/ui/tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
	<form>
	<input type="hidden" name="dailyId" value="${daily.dailyId }"/>
	<div class="trip-step4-editform-form ">
		<div class="trip-step4-editform-form-row">
			<div class="trip-step4-editform-form-name">描 述：</div>
			<div class="trip-step4-editform-form-input760">
				<textarea rows="4" name="content" data-type="range"
					 data-tip="描述信息最多1024个字符!" data-max="1024"
					cols="20" class="textarea760130">${daily.content }</textarea>
			</div>
		</div>
		<div class="trip-step4-editform-form-row">
			<div class="trip-step4-editform-form-name">早餐：</div>
			<div class="trip-step4-editform-form-input760">
				<input type="text" name="breakfast" data-type="range"
					value="${daily.breakfast }" data-tip="早餐最多32个字符!" data-max="32"
					class="input760" />
			</div>
		</div>
		<div class="trip-step4-editform-form-row">
			<div class="trip-step4-editform-form-name">午餐：</div>
			<div class="trip-step4-editform-form-input760">
				<input type="text" name="lunch" data-type="range"
					value="${daily.lunch }" data-tip="午餐最多32个字符!" data-max="32"
					class="input760" />
			</div>
		</div>
		<div class="trip-step4-editform-form-row">
			<div class="trip-step4-editform-form-name">晚餐：</div>
			<div class="trip-step4-editform-form-input760">
				<input type="text" name="supper" data-type="range"
					value="${daily.supper }" data-tip="晚餐最多32个字符!" data-max="32"
					class="input760" />
			</div>
		</div>
		<div class="trip-step4-editform-form-row">
			<div class="trip-step4-editform-form-name">入住酒店：</div>
			<div class="trip-step4-editform-form-input760">
				<input type="text" name="hotel" data-type="range"
					value="${daily.hotel }" data-tip="入住酒店最多32个字符!" data-max="32"
					class="input760" />
			</div>
		</div>
	</div>
	<c:forEach var="location" items="${locations }" varStatus="statu">
		<input type="hidden" name="dailyLocationIds" value="${location.dailyLocationId}"/>
		<input type="hidden" name="locationIds" value="${location.locationId }"/>
		<div class="trip-step4-editform-form ">
			<div class="trip-step4-editform-form-row">
				<div class="trip-step4-editform-form-title">地点${statu.count }</div>
			</div>
			<div class="trip-step4-editform-form-row">
				<div class="trip-step4-editform-form-name">地点名称：</div>
				<div class="trip-step4-editform-form-input760">
					<input type="text" name="locationName" data-type="range"
						data-tip="地点名称不可以为空，最多64个字符!" data-required="true" data-max="64"
						value="${location.locationName }" class="input760" />
				</div>
			</div>
			<div class="trip-step4-editform-form-row">
				<div class="trip-step4-editform-form-name">摘要：</div>
				<div class="trip-step4-editform-form-input560">
					<textarea  name="summarys" class="textarea56090" data-type="range"
						data-tip="地点摘要不可以为空，最多128个字符!"  data-max="128"
						>${location.summary }</textarea>
				</div>
				<div
					class="trip-step4-editform-form-name paddingleft9 textalignright">类别：</div>
				<div class="trip-step4-editform-form-input120">
					<select name="categoryIds" class="select120" data-type="trigger"> 
						 <c:forEach var="cat" items="${category }">
						 <option value="${cat.featureCategoryId }" <c:if test="${cat.featureCategoryId eq location.categoryId }">selected="selected"</c:if>>${cat.featureCategoryName }</option>
						 </c:forEach>
					</select>
				</div>
				<div
					class="trip-step4-editform-form-name paddingleft9 marigintop18 textalignright">停留时间：</div>
				<div class="trip-step4-editform-form-input120 marigintop18">
					<input type="text" name="stayTimes" data-type="range" value="${location.stayTime }"
						data-tip="停留时间不可以为空，请输入数字类型!" data-required="true"
						class="input120" />
				</div>
			</div>
			<div class="trip-step4-editform-form-row">
				<div class="trip-step4-editform-form-name">描述：</div>
				<div class="trip-step4-editform-form-input560">

					<textarea  name="contents" class="textarea560130"
						data-type="range" data-tip="地点描述不可以为空，最多1024个字符!"
						 data-max="1024"
						>${location.content }</textarea>
				</div>
				 <div class="trip-step4-editform-form-input180 marginleft9 boderbox180130">
                     <div class="trip-step4-editform-form-viewimage2" data-lid='${location.locationId }'>
                         <div class="js-preview trip-step4-preview2">
                         	<c:if test="${!empty location.image }">
	                         <img alt="" src="${image_domain }/${location.image}" width="180" height="130"/>
	                        </c:if>
                         </div>
                         <div class="trip-step4-btn2 trip-step4-btn-success2 js-fileapi-wrapper">
                             <div class="js-browse">
                                 <span class="trip-step4-btn-txt2">选择文件</span>
                                 <input name="filedata" type="file">
                             </div>
                             <div class="js-upload" style="display: none;">
                                 <div class="progress progress-success">
                                     <div class="js-progress bar">
                                     </div>
                                 </div>
                                 <span class="trip-step4-btn-txt2">上传中..</span>
                             </div>
                         </div>
                     </div>
                 </div>
			</div>
		</div>
	</c:forEach>
	</form>
	
</body>
</html>